***2019 Iran Legal Prime and Counterprime Experiment
mean prefer_strike_binary, over(dem_ind_rep), [pweight=weight] if (treatment==1)

mean prefer_strike_binary, over(treatment), [pweight=weight]
test [prefer_strike_binary]baseline = [prefer_strike_binary]legal_prime
test [prefer_strike_binary]legal_prime = [prefer_strike_binary]legal_counterprime
test [prefer_strike_binary]baseline = [prefer_strike_binary]legal_counterprime

mean bombing_illegal_binary, over(treatment), [pweight=weight]
test [bombing_illegal_binary]baseline = [bombing_illegal_binary]legal_prime
test [bombing_illegal_binary]legal_prime = [bombing_illegal_binary]legal_counterprime
test [bombing_illegal_binary]baseline = [bombing_illegal_binary]legal_counterprime

* marginal effects for baseline and legal/legal-counter conditions
logit prefer_strike_binary rep_leaners independent male favor_deathpen ageolder60 college_grad [pweight= weight]
margins, dydx(*) post
coefplot, xline(0) coeflabels(rep_leaners = "republican" independent = "independent" male="male" favor_deathpen = "supports death penalty" ageolder60 = "60+ years old" college_grad="college graduate") title("Marginal Effects of Variables on Preference for Airstrike", size(medium))

***2016 Waterboarding Poll
mean stronger_waterboarding_binary [pweight=weight]
